from request.openRequest import openQ
from indexword.word import index
from indexword.word import inertRedis
from indexword.word import toolJson

class boot :
    
    def __init__(self) :
        self.Q = openQ()
        self.i = inertRedis()
        self.idex = index()
        self.t = toolJson()
    
    def Run(self) :
        jsonData = self.Q.print_data()
        arr = self.t.indexJson(json=jsonData)
        for text in arr:
            inssns = self.idex.mode_all(text,True)
            self.i.stats_count(arr=inssns)
                   

booting = boot()
booting.Run()

